package com.task.core.service.impl;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.task.core.mapper.DataSendByMissionMapper;
import com.task.core.service.DataSendByMissionService;

/**
 * @author 迪迦.
 * @date 2024/11/7 13:50
 */
@Service
public class DataSendByMissionServiceImpl implements DataSendByMissionService {

  @Resource
  private DataSendByMissionMapper dataSendByMissionMapper;

  @Override
  public Integer useCountByMission(String dataCode, String missionName, Set<String> missionCodes,
      Set<String> advertiserCodes, Set<String> affiliateCodes, List<String> indexTableNameList) {
    return dataSendByMissionMapper.useCountByMission(dataCode, missionName, missionCodes,
        advertiserCodes, affiliateCodes, indexTableNameList);
  }

  @Override
  public Integer getFailedCount(String missionCode, String dataCode) {
    return dataSendByMissionMapper.getFailedCount(missionCode, dataCode);
  }
}
